FROM registry.gitee-ai.local/base/iluvatar-corex:3.2.0-bi100

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y python3.10 \
    python3-pip \
    git \
    git-lfs \
    wget

RUN pip3 install spaces gradio==4.31.5 vector_quantize_pytorch vocos omegaconf

RUN useradd -ms /bin/bash jupyter
USER jupyter
WORKDIR home/jupyter 
EXPOSE 7860                                           
COPY ChatTTS/ /home/jupyter/ChatTTS/
COPY Translate/ /home/jupyter/Translate/
COPY app.py /home/jupyter/app.py
ENTRYPOINT ["python3","app.py"]
USER root
RUN chown -R jupyter:jupyter /home
